package main

import (
	"fmt"
	"sort"
)

type IntArray []int

func main() {
	data := IntArray{1, 5, 0, 0, 8, 2, 7, 4, 5, 8, 2}
	sort.Sort(data)
	fmt.Println(data)
}

func (arr IntArray) Len() int {
	return len(arr)
}

func (arr IntArray) Less(i, j int) bool {
	return arr[i] < arr[j]
}

func (arr IntArray) Swap(i, j int) {
	arr[i], arr[j] = arr[j], arr[i]
}
